package request

type SuperLogin struct {
	Name     string `form:"name" xml:"name" json:"name" binding:"required"`
	Password string `form:"password" xml:"password" json:"password" binding:"required"`
}

type AddClass struct {
	Name   string  `form:"name" xml:"name" json:"name" binding:"required"`
	Price  float64 `form:"price" xml:"price" json:"price" binding:"required"`
	Cover  string  `form:"cover" xml:"cover" json:"cover" binding:"required"`
	Status int     `form:"status" xml:"status" json:"status" binding:"required"`
	Num    int     `form:"num" xml:"num" json:"num" binding:"required"`
}

type DetailClass struct {
	Id int64 `form:"id" xml:"id" json:"id" binding:"required"`
}

type UpdatedClassStatus struct {
	Id     int64 `form:"id" xml:"id" json:"id" binding:"required"`
	Status int64 `form:"status" xml:"status" json:"status" binding:"required"`
}

type AddRob struct {
	ClassId  int64   `form:"class_id" xml:"class_id" json:"class_id" binding:"required"`
	NowPrice float64 `form:"now_price" xml:"now_price" json:"now_price" binding:"required"`
}

type UserBuyClass struct {
	ClassId int64  `form:"class_id" xml:"class_id" json:"class_id" binding:"required"`
	Name    string `form:"name" xml:"name" json:"name" binding:"required"`
	Num     int64  `form:"num" xml:"num" json:"num" binding:"required"`
}

type AddOrder struct {
	ClassId int64 `form:"class_id" xml:"class_id" json:"class_id" binding:"required"`
	PayType int64 `form:"pay_type" xml:"pay_type" json:"pay_type" binding:"required"`
	Num     int64 `form:"num" xml:"num" json:"num" binding:"required"`
}
